package com.lingo.mgr.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingo.common.core.mapper.BaseMapperPlus;
import com.lingo.mgr.domain.ChatSessionRecord;
import com.lingo.mgr.domain.bo.ChatSessionBo;
import com.lingo.mgr.domain.vo.ChatSessionMessageVo;
import com.lingo.mgr.domain.vo.ChatSessionRecordVo;
import org.apache.ibatis.annotations.Param;

/**
 * 对话记录Mapper接口
 *
 * @author ruoyi
 * @date 2023-08-30
 */
public interface ChatSessionRecordMapper extends BaseMapperPlus<ChatSessionRecordMapper, ChatSessionRecord, ChatSessionRecordVo> {

    Page<ChatSessionMessageVo> selectChatSessionRecordList(Page<ChatSessionRecord> build, @Param("bo") ChatSessionBo bo);

    Long selectMessageCountBySessionId(@Param("sessionId") Long sessionId);

    Integer selectToDayCount(@Param("userId") Long userId);
}
